package Game;
/**
 * Pace.java
 * 
 * The values in this enumerated type represent the different 
 * paces a player can choose when moving the party
 * 
 * 
 * @author Ray DeCuir 
 * @version 1.0
 *
 */
public enum Pace {

	
	// the different paces a player can choose from
	GRUELING(1.5),
	MODERATE(1.0),
	EASY(.5),
	RESTING(0.0);
	
	// the player's last known pace
	private static Pace playerPace;
	
	
	
	// the multiplier for the pace, this is used to calculate the distance moved based on the pace
	private double multi;
	
	private Pace( double multi)
	{
		this.multi = multi;
	}
	
	
	/**
	 * getPlayerPace
	 * 
	 * This method returns the last known player pace
	 * 
	 * @return The most recent Pace selected by the player
	 */
	public static Pace getPlayerPace()
	{
		return playerPace;
	}

	
	/**
	 * setPlayerPace
	 * 
	 * This method updates the player pace to the parameterized value
	 * 
	 * @param playerPace The new pace for the player
	 */
	public static void setPlayerPace(Pace playerPace) 
	{
		Pace.playerPace = playerPace;
	}


	/**
	 * Returns the multiplier for the pace
	 * 
	 * @return the multi
	 */
	public double getMulti() {
		return multi;
	}

}
